using UnityEngine;
namespace NuoYan.Extension
{
    public static class SpriteRendererExtension
    {
        public static bool Contains(this SpriteRenderer spriteRenderer, Vector2 point)
        {
            return spriteRenderer.sprite.bounds.Contains(point);
        }
        public static bool Intersects(this SpriteRenderer spriteRenderer1, SpriteRenderer spriteRenderer2)
        {
            return spriteRenderer1.sprite.bounds.Intersects(spriteRenderer2.sprite.bounds);
        }
    }
}

